<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
  <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link href="/resource/css/bootstrap.css" rel="stylesheet">
<script type="text/javascript" src="/resource/js/bootstrap.js"></script>
<script type="text/javascript" src="/resource/js/jquery-3.2.1.js"></script>
</head>
<body>
<form action="index" method="post">
模糊查找:<input type="text" name="name">
<button>查找</button>
<div class="row" style="margin-top: 25px">
 	<div class="col-md-2"></div>
	 <div class="col-md-8"> 
	 	<table class="table table-striped">
		  <thead>
		    <tr>
		      <th scope="col">商品名称</th>
		      <th scope="col">照片</th>
		      <th scope="col">价格</th>
		      <th scope="col">描述</th>
		    </tr>
		  </thead>
		  <c:forEach items="${list }" var="l">
		  <tbody>
		    <tr>
		      <th scope="row">${l.name }</th>
		      <td>
		      <img alt="" src="${l.pic }" width="100px" height="100px">
		      </td>
		      <td>${l.price }</td>
		      <td>${l.describe }</td>
		    </tr>
		  </tbody>
		  </c:forEach>
		  <tr>
		  	<td>
		  		<jsp:include page="page.jsp"></jsp:include>
		  	</td>
		  </tr>
		</table>
	</div>
	<div class="col-md-2"></div>
</div>
</form>
</body>
</html>